package com.lyshop.jinding.adapters;

import android.content.Context;
import android.widget.ImageView;

import com.lyshop.jinding.R;
import com.lyshop.jinding.base.BaseRVAdapter;
import com.lyshop.jinding.base.BaseRVHolder;
import com.lyshop.jinding.bean.HeaderSelectBean;
import com.lyshop.jinding.utils.GlideUtils;

import java.util.List;

public class HeaderSelectAdapter extends BaseRVAdapter {
    public HeaderSelectAdapter(Context context, List list) {
        super(context, list);
    }

    @Override
    public int onCreateViewLayoutID(int viewType) {
        return R.layout.item_select_header;
    }

    @Override
    public void onBindView(BaseRVHolder holder, int position) {
        ImageView icon_img = holder.getViewHolder().get(R.id.icon_img);
        HeaderSelectBean bean  = (HeaderSelectBean)mList.get(position);
        GlideUtils.showImageOptions(mContext, bean.getAvatar(), icon_img);
    }
}
